package com.atguigu.orderservice;

import org.junit.Test;

/**
 * @author ：MJS
 * @date ：Created in 2021/4/18  23:32
 * @description：TODO
 */
public class rabbit {
    public static void main(String[] args) {
        long f=f(12);//填多少代表第几个月
        System.out.println(f);
    }
    public static long f(int n){
        if(n==1 || n==2){
          return 1;
        }else if(n>2){
         return f(n-1)+f(n-2);
        }else{
            return 0;
        }
    }

}
